<script setup lang="ts">
import { onLaunch, onShow, onHide, onUnload } from '@dcloudio/uni-app'
import store from '../src/store/index'
import { getBrowser } from '@/utils/tools'

onLaunch(() => {
  console.log('App Launch')
  // const sys = uni.getSystemInfoSync()
  // const vConsole = new VConsole();
  // store.commit('setSafeAreaBottom', sys.safeAreaInsets?.bottom)

  const browser = getBrowser()
  store.commit('app/SET_BROWSER', browser)
  // store.dispatch('setUserInfo')
})
onUnload(() => {})
onShow(() => {
  console.log('App Show')
})
onHide(() => {
  console.log('App Hide')
  uni.setStorageSync('game3Hide', 'true')
})
</script>
<style lang="scss">
@import 'uview-plus/index';

view,
div {
  box-sizing: border-box;
}

page {
  overflow: hidden;
  background-color: #f3f7f8;
}

.uni-toast {
  padding: 0 30rpx;
}

button::after {
  border: none;
}

body,
html {
  overflow-x: hidden !important;
}

body::-webkit-scrollbar {
  display: none;
}
</style>
